home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Languguage OS 2
/
Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO
/
language
/
embedded
/
simulato
/
v2_3_mc6.tz
/
v2_3_mc6
/
testfiles
/
sum10.txt
< prev
next >
Wrap
Text File
|
1994-05-02
|
2KB
|
36 lines
;
; Test file for mkload and sim68. Sum 10 integers and place the result
; into d1. Then dump the registers and text.
;
000000 1001 000 001000 000 ; Zero out d0
000002 0011 000 001000 000 ; Move d0 into a0
000004 0011 010 000101 000 0000000000101000 ; Move into d2 # of ints to add
000008 0011 011 000101 000 0000000000101010 ; Move inc/dec crt into d3
00000C 0011 001 000101 000 0000000000101100 ; LOOP: Move next int into d3
000010 1101 000 001000 001 ; Add int to the current sum
000012 1101 000 011000 011 ; Increment a0
000014 1101 000 011000 011 ; Increment a0
000016 1001 010 001000 011 ; Decrement number counter
000018 0110 1110 11110010 ; BGT LOOP
00001A 0011 001 000000 000 ; Move result into d1
00001C 1001 000 001000 000 ; Zero out d0
00001E 1101 000 001000 011 ; Increment d0
000020 1101 000 001000 011 ; Increment d0
000022 010011100100 0000 ; Trap #2 (dump registers)
000024 1101 000 001000 011 ; Increment d0
000026 010011100100 0000 ; Trap #3 (exit)
000028 0000 0000 0000 1010 ; Number of integers
00002A 0000 0000 0000 0001 ; Increment amount
00002C 0000 0000 0000 1010 ; Integer #1
00002E 0000 0000 0000 1001 ; Integer #2
000030 0000 0000 0000 1000 ; Integer #3
000032 0000 0000 0000 0111 ; Integer #4
000034 0000 0000 0000 0110 ; Integer #5
000036 0000 0000 0000 0101 ; Integer #6
000038 0000 0000 0000 0100 ; Integer #7
00003A 0000 0000 0000 0011 ; Integer #8
00003C 0000 0000 0000 0010 ; Integer #9
00003E 0000 0000 0000 0001 ; Integer #10